<!-- 模板文件 -->
<script type="text/javascript">
jQuery(function(){
	//换颜色
	jQuery('#colorChange span').click(function(){
			jQuery(this).addClass('s').siblings('span').removeClass('s');
			var _color = jQuery(this).attr('data-val');
			jQuery('.f100-hd h3').css('color',_color);
			jQuery('.f100-hd h5').css('background-color',_color);
		});
	
	// 编辑文字 ======================
	jQuery('.f100-hd h3').live('click',function(){
			var _c = jQuery(this).html();
			var _c_val = window.prompt('请输入要更改的文字',_c);
			if( _c_val != "" && _c_val != null ){ jQuery(this).html(_c_val)}
			return false;
		});
	
	jQuery('.f100-hd h4').live('click',function(){
			var _d = jQuery(this).html();
			var _d_val = window.prompt('请输入要更改的文字',_d);
			if( _d_val != "" && _d_val != null ){ jQuery(this).html(_d_val)}
			return false;
		});
	
	jQuery('.f100-hd h5').live('click',function(){
			var _e = jQuery(this).html();
			var _e_val = window.prompt('请输入要更改的文字',_e);
			if( _e_val != "" && _e_val != null ){ jQuery(this).html(_e_val)}
			return false;
		});
	
	//自动调整上面图片的高度
	jQuery('.wwBox1 li').mouseup(function(){
			var len = jQuery('.f100ww .wwBox1 li').length;
			var _h = 300 - 43 - len*35;
			jQuery('.f100bm').css('height',_h);
		});
	
});
</script>
<?php

?>

<div id="saveToDatabase">

	<div class="modl">
      
      <div class="f100-hd">
     	 <h3>本店疯狂促销中分享有利噢</h3>
         <div class="f100sns clearFix">
			<?php 
            $siteUrl = 'http://shop'.$_SESSION['shopid'].'.taobao.com';
            foreach($snsArr as $key=>$val) :
                echo '<a href="http://www.jiathis.com/send/?webid='.$key.'&url='.$siteUrl.'&title='.$say[array_rand($say,1)].'&uid=1524913" target="_blank" title="分享到'.$val.'" class="'.$key.'">';
                echo '<img src="'.base_url("uploads/sns_30x30").'/'.$key.'.gif" alt="'.$val.'" />';
                echo '</a>';
            endforeach;
            ?>
        </div>
		<h4>跟朋友一起分享吧，每天都有新的内容，惊喜的是分享还有礼噢；告诉大家我开心的每一天，让生活改变!</h4>
        <h5>分享有利 速速行动</h5>
      </div>
      
      	<div class="f100-bd">
        	
            
          <div class="f100ww">
              <ul class="wwBox1 clearFix">
                    <?php 
                    $wangwang_small = $wangwang;
                    $_k = 0;
                    $min_line = 2;
                    //$_count = count($wangwang);
                    foreach($wangwang as $key=>$val){
                        // if($val['name'] == '应用服务访问权') continue;
                         echo '<li>';
                         echo '<dl class="wwBox2 clearFix">';
                         echo '<dt>'.$val['name'].'</dt>'; 
                            if(count($val) > 1){
                                foreach($val['group'] as $k=>$v) :
                                     $v2 = explode(':',$v);
                                     $v3 = count($v2) > 1 ? $v2[1] : $v2[0];
                                     echo '<dd><span>'.$v3.':</span><a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid='.$v.'&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid='.$v.'&site=cntaobao&s=2&charset=utf-8" alt="点这里给我发消息" /></a></dd>';
                                endforeach;
                            }
                         echo '</dl>';
                         echo '</li>';
                         unset($wangwang[$key]);
                         $_k++;
                         if($_k >= $min_line) break;
                     }
                    ?>
                    </ul>
            </div>
          
        </div>
        
        
        
    </div>


</div> <!-- //saveToDatabase -->

<?php
	$data2['test_cats'] = $test_cats;
	$data2['wangwang'] = $wangwang;
	$data2['wangwang_small'] = $wangwang_small;
	$data2['fat1'] = 2;
	$data2['fat2'] = 1;
	$this->load->view('keyboard_wangwang_view',$data2);
?>

<!--

<a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid='.$v.'&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid='.$v.'&site=cntaobao&s=2&charset=utf-8" alt="点这里给我发消息" /></a>

http://muhaha.taobao.com/category.htm?search=y
http://muhaha.taobao.com/category.htm?search=y&orderType=hotsell_desc
orderType=newOn_desc
orderType=price_asc


$_SESSION["shopid"]

http://muhaha.taobao.com/category-338449197.htm?search=y&catName=%C9%FA%BB%EE%B4%F3%B1%AC%D5%A8%26middot%3BT%D0%F4
http://muhaha.taobao.com/search.htm?search=y&scid=338449197

http://design-xin.taobao.com/category-532939511.htm?search=y
http://design-xin.taobao.com/search.htm?search=y&scid=532939511&queryType=cat&scname=zca89rGqzsYmbWlkZG90O8TaxNo%3D
-->